/**
 * Free software.
 */

package org.nanhill.support.spring.mvc;

import java.util.Locale;

import org.springframework.context.ApplicationContextException;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-17
 */
public class FixedFreeMarkerViewResolver extends FreeMarkerViewResolver {

	protected View loadView(String viewName, Locale locale) throws Exception {
		View vi = null;
		try {
			vi = super.loadView(viewName, locale);
		} catch (ApplicationContextException e) {
			// Couldn't load fm template
		}
		return vi;
	}

}
